#ifndef MAINWINDOW_H
#define MAINWINDOW_H

#include <QtGui/QMainWindow>
#include <QtGui/QFileDialog>
#include <QSignalMapper>
#include <QMessageBox>
#include "sweepwidget.h"
#include "ui_mainwindow.h"

namespace Ui
{
    class MainWindow;
}

class MainWindow : public QMainWindow
{
    Q_OBJECT

public:
    MainWindow(QWidget *parent = 0);
    ~MainWindow();
    void initGLUserInterface();

private:
    Ui::MainWindow *ui;
    SweepWidget *sweepWidget;
    QSignalMapper *signalMapper;

private slots:
    void choosePolyFile();
    void showNormals(int state);
    void resetCam();
    void initGLComponent(QPair<QString , GLenum> componentName);
    void spinBoxChanged(QWidget *modifiedComponent);
    void on_modelTwoSide_check_toggled(bool checked);
    void on_modelLocalViewer_check_toggled(bool checked);
    void on_polySmooth_check_toggled(bool checked);
    void on_lineSmooth_check_toggled(bool checked);
};

#endif // MAINWINDOW_H
